import 'package:flutter/material.dart';

class DiscoverChildPage extends StatelessWidget {
  final String title;

  DiscoverChildPage({
    required this.title,
});
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),//非字符串内直接取
      ),
      body: Center(
        child: Text('$title'),//字符串内加$取值，
      ),
    );
  }
}
